"""定义程序需要用到的各种变量."""

# 盈利区间
PROFIT_AREA_BREAKPOINT = [-5, -3, -1, 0, 1, 3, 5]

# 定义各个合约一手的数量
MULTI_UNITS = {
    "BU": 10,
    "C": 10,
    "CF": 5,
    "CS": 10,
    "HC": 10,
    "I": 100,
    "IF": 300,
    "J": 100,
    "JM": 60,
    "M": 10,
    "MA": 10,
    "P": 10,
    "RB": 10,
    "RM": 10,
    "RU": 10,
    "SR": 10,
    "T": 10000,
    "ZC": 100
}

# 文本交易记录中的合约是中文名称
CONTRACT_NAME = {
    "豆粕": "M",
    "螺纹钢": "RB",
    "5年期国": "T",
    "橡胶": "RU",
    "白糖": "SR",
    "铁矿石": "I",
    "棕榈油": "P",
    "热轧卷板": "HC",
    "焦炭": "J",
    "焦煤": "JM",
    "玉米": "C",
    "动力煤ZC": "ZC"
}

# 匹配行情K线后，画图时前后增加的数字
K_LINES_ADDITIONAL = 15

# 盈利达到该幅度时记录位置
PROFIT_LIMIT = 0.03
